package bookMapper

import (
	"bookStore/config"
	"bookStore/model"
	"encoding/json"
	"log"
)

func CreateBook(book *model.Book) {
	bytes, _ := json.Marshal(book)
	log.Println("========>>>book:", string(bytes))
	config.MySql.Create(book)
}
